package com.xdjk.networkdemo.listener;

/**
 * Created by zhanghs on 2017/6/13.
 * 网络请求回调
 */

public interface NetworkListener<T> {
    /*请求成功返回*/
    void onResopnse(T response);
    /*请求失败*/
    void onFailure(Throwable e);
}
